package mapper;

import po.Line;
import po.Sight;

import java.util.List;

public interface LineMapper {

    boolean insertLine(Line line);

    boolean deleteLineByName(String linename);

    boolean updateLineById(Line line);

    Line selectLineById(Integer lineid);

    Line selectLineByName(String linename);

    List<Line> selectLineByCompanyId(Integer companyid);

    List<Line> selectAllLinesIncludeSight(Sight sight);

    List<Line> selectLineByUsername(String username);

    List<Line> selectAllLines();
}